package com.fengweijie.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fengweijie.dao.ProductMapper;
import com.fengweijie.entity.TProduct;
import com.fengweijie.service.ProductService;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class ProductServiceImpl extends ServiceImpl<ProductMapper, TProduct> implements ProductService {
    @Override
    public void uploadNewProduct(TProduct tProduct) {
        save(tProduct);
    }

    @Override
    public List<TProduct> getAllProducts() {
        List<TProduct> list = list();
        return list;
    }
}
